package com.gimi.cloud.bbp.manage.consumer.feign.page;

import com.gimi.cloud.bbp.common.utils.reqhead.Response;
import com.gimi.cloud.bbp.dto.page.PageConfigDTO;
import feign.Headers;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "bbp-manage-service")
public interface PageConfigFeignService {
	
	@Headers({"Content-Type: application/json","Accept: application/json"})
	@RequestMapping(value = "/pc/getPageConfigList", method = RequestMethod.POST)
	Response getList(@RequestBody PageConfigDTO dto);
	
	@Headers({"Content-Type: application/json","Accept: application/json"})
	@RequestMapping(value = "/pc/savePageConfig", method = RequestMethod.POST)
	Response saveInfo(@RequestBody PageConfigDTO dto);
	
	@Headers({"Content-Type: application/json","Accept: application/json"})
	@RequestMapping(value = "/pc/delPageConfig", method = RequestMethod.POST)
	Response delInfo(@RequestBody PageConfigDTO dto);

	@Headers({"Content-Type: application/json","Accept: application/json"})
	@RequestMapping(value = "/pc/getPageConfig", method = RequestMethod.POST)
	Response getInfoById(PageConfigDTO dto);

}
